var beiMiCommon = require("BeiMiCommon");

cc.Class({
  extends: beiMiCommon,

      properties: {
        roomLabel: {
            default: null,
            type: cc.Label
        }
      },

      init (roomid) {
        this.roomLabel.string = "已代开房间号："+roomid+"";
        let self= this;
        this.node.on('shareDaikaiRoom', function(event) {
          self.wxShare("已代开房间号："+roomid, "快来三缺一跟我嗨到爆！", "http://www.laiyuanmajiang.top:8080/wap/index.html");
        });

      },
    //
    // // update (dt) {},
    //   shareFriendsClick:function(event,data){
    //     this.wxShare("三缺一", "快来三缺一跟我嗨到爆！", "http://www.laiyuanmajiang.top:8080/wap/index.html");
    //   },
    //
    //   shareCircleClick:function(event,data){
    //     this.wxShare("三缺一", "快来三缺一跟我嗨到爆！", "http://www.laiyuanmajiang.top:8080/wap/index.html");
    //   },
});
